package com.szt.school.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

@Controller
public class ViewHtmlController {
    @GetMapping("index")
    public String getIndex() throws FileNotFoundException {
        int i = 1/0;
        /*File file = new File("/heihei");
        FileInputStream fis = new FileInputStream(file);*/
        System.out.println(i);
        return "index";
    }
}
